package com.cyan.app.workflow.util;

import com.cyan.app.workflow.R;

/**
 * Created by DXW on 2015/11/18.
 */
public class ModuleUtil {
    /**
     * 根据下标获取模块图片
     *
     * @param moduleId
     *            数组下标
     * @return 模块图片
     */
    public static int getIconByID(int moduleId) {
        int icon_id = 0;
        switch (moduleId) {

            case ModuleConstants.MODULE_ID_SFC:
                icon_id = R.drawable.module_icon_aps;
                break;
            case ModuleConstants.MODULE_ID_APS:
                icon_id = R.drawable.module_icon_aps;
                break;

            case ModuleConstants.MODULE_ID_HR:
                icon_id = R.drawable.module_icon_hr;
                break;

            case ModuleConstants.MODULE_ID_TQM:
                icon_id = R.drawable.module_icon_mas;
                break;

            case ModuleConstants.MODULE_ID_VM:
                icon_id = R.drawable.module_icon_pn;
                break;

            case ModuleConstants.MODULE_ID_TME:
                icon_id = R.drawable.module_icon_tme;
                break;

            case ModuleConstants.MODULE_ID_WHM:
                icon_id = R.drawable.module_icon_whg;
                break;

            case ModuleConstants.MODULE_ID_RPT:
                icon_id = R.drawable.module_icon_rpt;
                break;
            case ModuleConstants.MODULE_ID_ALT:
                icon_id = R.drawable.module_icon_alt;
                break;
            case ModuleConstants.MODULE_ID_EXP:
                icon_id = R.drawable.module_icon_exp;
                break;

            default:
                icon_id = R.drawable.module_icon_default;
                break;
        }
        return icon_id;
    }

}
